﻿using BCCommon.Extensions;
using BCCommon.TMS.Transport;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.VehicleTransportBusinessConfig
{
    /// <summary>
    /// 车辆运输业务配置扩展
    /// </summary>
    public class VehicleTransportBusinessConfigViewDto
    {
        /// <summary>
        /// 车辆运输业务配置Id
        /// </summary>
        public int VehicleTransportBusinessConfigId { get; set; }

        /// <summary>
        /// 运输业务
        /// </summary>
        public TransportBusinessType TransportBusiness { get; set; }

        /// <summary>
        /// 运输业务描述
        /// </summary>
        public string TransportBusinessStr { get { return this.TransportBusiness.GetDescriptionString(); } }

        /// <summary>
        /// 已启用
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 运输业务顺序
        /// </summary>
        public int BusinessOrder { get; set; }

        /// <summary>
        /// 业务描述
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 同城计费模式
        /// </summary>
        public TransportSameCityChargingMode? SameCityChargingMode { get; set; }
        /// <summary>
        /// 同城途经点附加费金额
        /// </summary>
        public decimal? SameCityPointSurchargeAmount { get; set; }
        /// <summary>
        /// 车辆运输业务配置重写Id
        /// </summary>
        public int? VehicleTransportBusinessConfigOverwriteId { get; set; }

        /// <summary>
        /// 代理商Id
        /// </summary>
        public long? AgentRecordId { get; set; }

        /// <summary>
        /// 省份Code
        /// </summary>
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 省份名称
        /// </summary>
        public string ProvinceName { get; set; }

        /// <summary>
        /// 市Code
        /// </summary>
        public string CityCode { get; set; }

        /// <summary>
        /// 市名称
        /// </summary>
        public string CityName { get; set; }

        /// <summary>
        /// 发货地县区Code
        /// </summary>
        public string CountyCode { get; set; }

        /// <summary>
        /// 发货地县区名称
        /// </summary>
        public string CountyName { get; set; }

        /// <summary>
        /// 是否已有下级代理
        /// </summary>
        public bool? IsChildAgent { get; set; }

        /// <summary>
        /// 是否已外包
        /// </summary>
        public bool? IsEpibole { get; set; }
    }
}
